#ifndef _JANNA_PLUGINS_TASK_EXPLORER_H_
#define _JANNA_PLUGINS_TASK_EXPLORER_H_

#include <log_util.h>

#include <QObject>
#include <QtPlugin>

#include "janna/janna_plugin_interface.h"
#include "janna/janna_type.h"

class TaskExplorer : public QObject, JannaPluginInterface {
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "com.laolang.janna.JannaPluginInterface" FILE "taskexplorer.json")
    Q_INTERFACES(JannaPluginInterface)

public:
    TaskExplorer();
    QString                 pluginName() override;
    QString                 pluginVersion() override;
    QString                 author() override;
    QMap<QString, QVariant> handler(const JannaTopic& point, const QMap<QString, QVariant>& param) override;

private:
    std::shared_ptr<spdlog::logger> log;
};

#endif
